package players;

import gui.BoardPanel;


import java.util.ArrayList;

import model.OthelloBoard;
import model.Position;

public class GuiPlayer implements Player
{
    BoardPanel d_boardframe;
    
    public GuiPlayer(BoardPanel boardFrame)
    {
    	super();
        d_boardframe = boardFrame; //new BoardWindow();
    }

    public boolean move(OthelloBoard board, byte color) 
    {
        ArrayList<Position> moves = board.getTransitions(color);
        if (moves.size() == 0)
            return false;
  
        Position move = d_boardframe.getMove(moves);     
        if(d_boardframe.input_set)
        	return false;
        
        board.makeTransition(move, color); 
        return true;
    }

	public double evaluate(OthelloBoard board, byte color) 
	{
		return 0.0;
	}

	@Override
	public void setExploration(boolean aan) {
		// TODO Auto-generated method stub
		
	}
    

}
